<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>jquery-ajax</title>
  <script src="../js/jquery.js"></script>
  <script>
    let baseURL = 'http://47.94.46.113:7788'
    let loginData = {
      username: 'admin1',
      password: '123321'
    }
    $.ajax({
      url: baseURL + '/user/login',
      method: 'post',
      // headers: {
      //   'Content-Type': 'application/json'
      // },
      data: loginData,
      success(res) {
        console.log(res.data);
      },
      error(error) {
        console.log(error);
      }
    })
  </script>
</head>

<body>

</body>

</html>